package cn.iocoder.yudao.module.erp.controller.admin.contractinfo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDate;
import java.util.*;
import javax.validation.constraints.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 合同信息新增/修改 Request VO")
@Data
public class ContractInfoSaveReqVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "17356")
    private Long id;

    @Schema(description = "合同名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @NotEmpty(message = "合同名称不能为空")
    private String name;

    @Schema(description = "合同类型", requiredMode = Schema.RequiredMode.REQUIRED  )
    @NotEmpty(message = "合同类型不能为空")
    private String type;

    @Schema(description = "客户", requiredMode = Schema.RequiredMode.REQUIRED, example = "20834")
    @NotNull(message = "客户不能为空")
    private Long customerId;

    @Schema(description = "合同量", requiredMode = Schema.RequiredMode.REQUIRED, example = "16082")
    @NotNull(message = "合同量不能为空")
    private BigDecimal contractCount;

    @Schema(description = "合同价格", requiredMode = Schema.RequiredMode.REQUIRED, example = "15340")
    @NotNull(message = "合同价格不能为空")
    private BigDecimal contractPrice;

    @Schema(description = "每日气量", example = "21885")
    private BigDecimal contractDayCount;

    @Schema(description = "已用气量", example = "19934")
    private BigDecimal usedCount;

    @Schema(description = "照付不议系数")
    @NotNull(message = "照付不议系数不能为空")
    private BigDecimal ratio;

    @Schema(description = "开始时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "开始时间不能为空")
    private LocalDate beginTime;

    @Schema(description = "截止时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "截止时间不能为空")
    private LocalDate endTime;


    @Schema(description = "合同签订日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "合同签订日期不能为空")
    private LocalDate contractDate;


    @Schema(description = "状态")
    private Integer status;

    @Schema(description = "备注"  )
    private String remark;

    @Schema(description = "附件 URL" )
    private String fileUrl;

}